package domain;

import java.util.ArrayList;
import java.util.Set;


public interface IDAOContact {
	
	public boolean addContact(String firstname, String lastname, String email, String street, String city, String zip, String country,Set<PhoneNumber> phones);
	
	public boolean deleteContact(long id);

	public boolean deleteContact(Contact contact);
	
	public Contact getContact(long id);
	
	public boolean modifyContact(long id, String firstname, String lastname, String email, String street, String city, String zip, String country,Set<PhoneNumber> phones);
	
	public boolean modifyContact(Contact contact, String firstname, String lastname, String email, String street, String city, String zip, String country,Set<PhoneNumber> phones);
	
	public ArrayList<Contact> getContactByFirstname(String firstname);
	
	public ArrayList<Contact> getContactByLastname(String lastname);
	
	public ArrayList<Contact> getContactByEmail(String email);
	
	public ArrayList<Contact> getAllExistingContact();

}
